Configuring TomEE

Once the TomEE is extracted, we need to customize to our requirements so that our application will run on TomEE. This includes adding the required third party jars, properties file, configuring data sources, and so on.

The catalina.properties file in the conf folder needs to be modified so as to make the TomEE container to pick custom configuration or jars defined by user.

Shared Locations
shared.loader=${catalina.home}/shared/lib, ${catalina.home}/shared/lib/*.jar, ${catalina.home}/shared/conf

Continuing the same file we need to mention the coherence jar not to be scanned using JarScanner functionality. To achieve this in the same catalina.properties file, find the tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\ and add coherence*.jar.

Note: To solve the DB2 latest Jar issues that comes with software, we need to mention the pdq.jar should not be scanned using Jar Scanner functionality.

Example

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\

...

cglib-*.jar,\

cobertura-*.jar,\

coherence*.jar,\

commons-beanutils*.jar,\

pdq*.jar,\

...

The above configurations are same for any instance of TomEE.